import groovy.json.*

// def payload = new URL("http://github.com/api/v2/json/commits/list/grails/grails-core/master").text

// def slurper = new JsonSlurper()
// def doc = slurper.parseText(payload)

// doc.commits.message.each { println it }

def json = new JsonBuilder()
json.state{
   capital "Denver"
   majorCities "Denver", "Colorado Springs", "Fort Collins"
}
// println json

println JsonOutput.prettyPrint(json.toString())

//println JsonOutput.prettyPrint('''{"person":{"name":"Guillaume","age":33,"pets":["Hector","Felix"]}}''')?;???????????


